<?php

class ComponentTableSeeder extends Seeder {
	public function run()
	{
		DB::table('component')->truncate();

		$components = [
			['name' => 'Component 1', 
			'description' => 'Component 1 desc', 
			'comment' => 'Component 1 comment', 
			'type' => 'SMD', 
			'footprint' => '0402', 
			'manufacturer_code' => '123456', 
			'digikey_code' => '123-456', 
			'value' => '100', 
			'created_at' => new DateTime, 
			'updated_at' => new DateTime],
			
			['name' => 'Component 2', 
			'description' => 'Component 2 description', 
			'comment' => 'Component 2 comment', 
			'type' => '', 
			'footprint' => '', 
			'manufacturer_code' => '234567', 
			'digikey_code' => '234-567', 
			'value' => '200', 
			'created_at' => new DateTime, 
			'updated_at' => new DateTime]
		];
		
		DB::table('component')->insert($components);
	}
}